import { axiosAjax, pageDataExport } from '@/utils'

export default class lushuApi {
    static login(params) {
        return axiosAjax('post', '/oauth/token',params)
    }
    static getApplealList(params) {
        return axiosAjax('post', `/politics-law/page`, params)
    }
    static complete(params) {
        return axiosAjax('post', `/politics-law/complete`, params)
    }
    static process(params) {
        return axiosAjax('post', `/politics-law/process`, params)
    }
     // 用户管理
     static systemUser(params) {
        return axiosAjax('post', '/politics-law/user/page' ,params)
    }
    static getProcess(politicsLawId) {
        return axiosAjax('get', `/politics-law/process/${politicsLawId}`)
    }
    static systemAccount(params) {
        return axiosAjax('post', '/systemUser/account/page' ,params)
    }
    static saveSystemUser(params) {
        return axiosAjax('post', '/systemUser/save' ,params)
    }
    static delSystemUser(params) {
        return axiosAjax('post', '/systemUser/del' ,params)
    }
    static export(params, filename) {
        return pageDataExport('post', '/politics-law/export' ,params, filename)
    }
}